package com.packet.controller;

import com.packet.pojo.Trip;
import com.packet.service.GetServiceFormFinance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;
import java.util.List;

/**
 * @className:IndexController
 * @Author:wallet_packet Date:2023-11-11 14:28
 * @Describe:
 */
@Controller
public class IndexController {
    @RequestMapping("/index")
    public String index() {
        return "index";
    }

    @Resource
    GetServiceFormFinance getServiceFormFinance;


    @RequestMapping("/stt")
    @ResponseBody
    public String getItems(){
        String s = getServiceFormFinance.queryAllStaff();
        return s;
    }


}
